package com.ali.controller;

import com.ali.common.Response;
import com.ali.service.OrderService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/order")
public class OrderController {
    @Resource
    private OrderService orderService;

    /**
     * Gateway网关调用
     */
    @GetMapping(value = "/gateway")
    public Response<String> gateway(@RequestParam Map<String, Object> param, @RequestHeader Map<String, Object> header) {
        return orderService.print(param, header);
    }
}